package com.example.demo.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.dto.BalanceDto;
import com.example.demo.entity.Balance;
import com.example.demo.entity.BalanceFoodRelation;

import java.util.List;

/**
* @author Atanycosts
* @description 针对表【balance_food_relation】的数据库操作Service
* @createDate 2023-04-03 22:56:29
*/
public interface BalanceFoodRelationService extends IService<BalanceFoodRelation> {

    //删除帖子
    void deleteBalanceFoodRelation(Long id);

    //新增方案
    void saveBalance(BalanceDto balanceDto);

    //修改更新方案
    void updateBalance(BalanceDto balanceDto);

    //根据ID查询方案信息和对应的食物信息
    BalanceDto getByIdBalance(Long id);

    //分页查询或者根据名称查询方案信息和对应的食物信息
    Page<Balance> getAllBalance(int page, int pageSize, String planName);

    //方案智能推荐
    List<Balance> recommendAi();
}
